package com.example.demo.sevice.impl;


import com.example.demo.bean.Reason;
import com.example.demo.dao.ReasonDao;
import com.example.demo.sevice.ReasonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReasonServiceImpl implements ReasonService {
    @Autowired
    private ReasonDao reasonDao;

    /*查询数据*/
    @Override
    public List<Reason> reason() {
        return reasonDao.reason();
    }

    /*新增数据*/
    @Override
    public void addReason(String type) {
        reasonDao.addReason(type);
    }

    /*删除数据*/
    @Override
    public void deleteReason(String numberID) {
        reasonDao.deleteReason(numberID);
    }

    /*修改数据*/
    @Override
    public void updateReason(Reason reason) {
        reasonDao.updateReason(reason);
    }
}
